package com.example.kotlin.basis

/**
 * Created by xiao_tan on 17/7/23.
 * ${}字符串模板
 */

fun dailyGenerate(placeName: String): String {
    var temple = "今天万里无云,我们去${placeName},首先映入眼帘的是,${placeName}${placeName.length}个大字"
    return temple;
}

fun checkFace(score: Int) {
    if (score > 80) {
        println("这是一个帅哥")
    } else {
        println("这是一个蟀哥")
    }
}

fun returnBig(a: Int, b: Int): Int {
    if (a > b) return a else return b
}


fun main(args: Array<String>) {
    println(com.example.kotlin.basis.dailyGenerate("金銮殿"))
    println(com.example.kotlin.basis.dailyGenerate("中山公园"))
    com.example.kotlin.basis.checkFace(65)

    var a = 4
    var b = 7
    println("${a}和${b}中较大的那个数的值为${com.example.kotlin.basis.returnBig(a, b)}")
}